package app;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.WindowConstants;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class Emoticones extends javax.swing.JFrame {

	{
		//Set Look & Feel
		try {
			javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName());
		} catch(Exception e) {
			e.printStackTrace();
		}
	}

	private JPanel jPanel1;
	private JButton emo10;
	private JButton emo46;
	private JButton emo45;
	private JButton emo44;
	private JButton emo43;
	private JButton emo42;
	private JButton emo41;
	private JButton emo40;
	private JButton emo39;
	private JButton emo38;
	private JButton emo37;
	private JButton emo36;
	private JButton emo35;
	private JButton emo34;
	private JButton emo33;
	private JButton emo32;
	private JButton emo31;
	private JButton emo30;
	private JButton emo56;
	private JButton emo55;
	private JButton emo54;
	private JButton emo53;
	private JButton emo52;
	private JButton emo51;
	private JButton emo50;
	private JButton emo49;
	private JButton emo48;
	private JButton emo47;
	private JButton emo57;
	private JButton emo58;
	private JButton emo59;
	private JButton emo29;
	private JButton emo28;
	private JButton emo27;
	private JButton emo26;
	private JButton emo25;
	private JButton emo24;
	private JButton emo23;
	private JButton emo22;
	private JButton emo21;
	private JButton emo20;
	private JButton emo19;
	private JButton emo18;
	private JButton emo17;
	private JButton emo16;
	private JButton emo15;
	private JButton emo14;
	private JButton emo13;
	private JButton emo12;
	private JButton emo11;
	private JButton emo9;
	private JButton emo8;
	private JButton emo7;
	private JButton emo6;
	private JButton emo5;
	private JButton emo4;
	private JButton emo3;
	private JButton emo2;
	private JButton emo1;
	private Main main;
	int emoticon;

	/**
	* Auto-generated main method to display this JFrame
	*/
	
	
	public Emoticones() {
		super();
		initGUI();
	}
	
	
	public void conectar(Main m){
		main=m;
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			this.setTitle("Agregar emoticon");
			this.setIconImage(new ImageIcon(getClass().getClassLoader().getResource("app/postinga16x16.png")).getImage());
			{
				jPanel1 = new JPanel();
				FlowLayout jPanel1Layout = new FlowLayout();
				getContentPane().add(jPanel1, BorderLayout.CENTER);
				jPanel1.setLayout(jPanel1Layout);
				jPanel1.setBackground(new java.awt.Color(255,255,255));
				jPanel1.setPreferredSize(new java.awt.Dimension(463, 271));
				{
					emo1 = new JButton();
					jPanel1.add(emo1);
					emo1.setPreferredSize(new java.awt.Dimension(16,16));
		    		emo1.setSize(16, 16);
		    		emo1.setBorderPainted(false);
		    		emo1.setIcon(new ImageIcon(getClass().getResource("emo1.gif")));
		    		emo1.setBackground(new java.awt.Color(255,255,255));
		    		emo1.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=1;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo2 = new JButton();
					jPanel1.add(emo2);
					emo2.setPreferredSize(new java.awt.Dimension(16,16));
		    		emo2.setSize(16, 16);
		    		emo2.setBorderPainted(false);
		    		emo2.setIcon(new ImageIcon(getClass().getResource("emo2.gif")));
		    		emo2.setBackground(new java.awt.Color(255,255,255));
		    		emo2.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=2;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo3 = new JButton();
					jPanel1.add(emo3);
					emo3.setPreferredSize(new java.awt.Dimension(16,16));
		    		emo3.setSize(16, 16);
		    		emo3.setBorderPainted(false);
		    		emo3.setIcon(new ImageIcon(getClass().getResource("emo3.gif")));
		    		emo3.setBackground(new java.awt.Color(255,255,255));
		    		emo3.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=3;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo4 = new JButton();
					jPanel1.add(emo4);
					emo4.setPreferredSize(new java.awt.Dimension(16,16));
		    		emo4.setSize(16, 16);
		    		emo4.setBorderPainted(false);
		    		emo4.setIcon(new ImageIcon(getClass().getResource("emo4.gif")));
		    		emo4.setBackground(new java.awt.Color(255,255,255));
		    		emo4.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=4;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo5 = new JButton();
					jPanel1.add(emo5);
					emo5.setPreferredSize(new java.awt.Dimension(16,16));
		    		emo5.setSize(16, 16);
		    		emo5.setBorderPainted(false);
		    		emo5.setIcon(new ImageIcon(getClass().getResource("emo5.gif")));
		    		emo5.setBackground(new java.awt.Color(255,255,255));
		    		emo5.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=5;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo6 = new JButton();
					jPanel1.add(emo6);
					emo6.setPreferredSize(new java.awt.Dimension(16,16));
		    		emo6.setSize(16, 16);
		    		emo6.setBorderPainted(false);
		    		emo6.setIcon(new ImageIcon(getClass().getResource("emo6.gif")));
		    		emo6.setBackground(new java.awt.Color(255,255,255));
		    		emo6.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=6;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo7 = new JButton();
					jPanel1.add(emo7);
					emo7.setPreferredSize(new java.awt.Dimension(16,16));
		    		emo7.setSize(16, 16);
		    		emo7.setBorderPainted(false);
		    		emo7.setIcon(new ImageIcon(getClass().getResource("emo7.gif")));
		    		emo7.setBackground(new java.awt.Color(255,255,255));
		    		emo7.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=7;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo8 = new JButton();
					jPanel1.add(emo8);
					emo8.setPreferredSize(new java.awt.Dimension(16,16));
		    		emo8.setSize(16, 16);
		    		emo8.setBorderPainted(false);
		    		emo8.setIcon(new ImageIcon(getClass().getResource("emo8.gif")));
		    		emo8.setBackground(new java.awt.Color(255,255,255));
		    		emo8.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=8;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo9 = new JButton();
					jPanel1.add(emo9);
					emo9.setPreferredSize(new java.awt.Dimension(16,16));
					emo9.setSize(16, 16);
		    		emo9.setBorderPainted(false);
		    		emo9.setIcon(new ImageIcon(getClass().getResource("emo9.gif")));
		    		emo9.setBackground(new java.awt.Color(255,255,255));
		    		emo9.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=9;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo10 = new JButton();
					jPanel1.add(emo10);
					emo10.setPreferredSize(new java.awt.Dimension(16,16));
					emo10.setSize(16, 16);
		    		emo10.setBorderPainted(false);
		    		emo10.setIcon(new ImageIcon(getClass().getResource("emo10.gif")));
		    		emo10.setBackground(new java.awt.Color(255,255,255));
		    		emo10.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=10;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo11 = new JButton();
					jPanel1.add(emo11);
					emo11.setPreferredSize(new java.awt.Dimension(16,16));
					emo11.setSize(16, 16);
		    		emo11.setBorderPainted(false);
		    		emo11.setIcon(new ImageIcon(getClass().getResource("emo11.gif")));
		    		emo11.setBackground(new java.awt.Color(255,255,255));
		    		emo11.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=11;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo12 = new JButton();
					jPanel1.add(emo12);
					emo12.setPreferredSize(new java.awt.Dimension(16,16));
					emo12.setSize(16, 16);
		    		emo12.setBorderPainted(false);
		    		emo12.setIcon(new ImageIcon(getClass().getResource("emo12.gif")));
		    		emo12.setBackground(new java.awt.Color(255,255,255));
		    		emo12.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=12;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo13 = new JButton();
					jPanel1.add(emo13);
					emo13.setPreferredSize(new java.awt.Dimension(16,16));
					emo13.setSize(16, 16);
		    		emo13.setBorderPainted(false);
		    		emo13.setIcon(new ImageIcon(getClass().getResource("emo13.gif")));
		    		emo13.setBackground(new java.awt.Color(255,255,255));
		    		emo13.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=13;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo14 = new JButton();
					jPanel1.add(emo14);
					emo14.setPreferredSize(new java.awt.Dimension(16,16));
					emo14.setSize(16, 16);
		    		emo14.setBorderPainted(false);
		    		emo14.setIcon(new ImageIcon(getClass().getResource("emo14.gif")));
		    		emo14.setBackground(new java.awt.Color(255,255,255));
		    		emo14.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=14;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo15 = new JButton();
					jPanel1.add(emo15);
					emo15.setPreferredSize(new java.awt.Dimension(16,16));
					emo15.setSize(16, 16);
		    		emo15.setBorderPainted(false);
		    		emo15.setIcon(new ImageIcon(getClass().getResource("emo15.gif")));
		    		emo15.setBackground(new java.awt.Color(255,255,255));
		    		emo15.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=15;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo16 = new JButton();
					jPanel1.add(emo16);
					emo16.setPreferredSize(new java.awt.Dimension(16,16));
					emo16.setSize(16, 16);
		    		emo16.setBorderPainted(false);
		    		emo16.setIcon(new ImageIcon(getClass().getResource("emo16.gif")));
		    		emo16.setBackground(new java.awt.Color(255,255,255));
		    		emo16.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=16;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo17 = new JButton();
					jPanel1.add(emo17);
					emo17.setPreferredSize(new java.awt.Dimension(16,16));
		    		emo17.setSize(16, 16);
		    		emo17.setBorderPainted(false);
		    		emo17.setIcon(new ImageIcon(getClass().getResource("emo17.gif")));
		    		emo17.setBackground(new java.awt.Color(255,255,255));
		    		emo17.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=17;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo18 = new JButton();
					jPanel1.add(emo18);
					emo18.setPreferredSize(new java.awt.Dimension(16,16));
					emo18.setSize(16, 16);
		    		emo18.setBorderPainted(false);
		    		emo18.setIcon(new ImageIcon(getClass().getResource("emo18.gif")));
		    		emo18.setBackground(new java.awt.Color(255,255,255));
		    		emo18.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=18;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo19 = new JButton();
					jPanel1.add(emo19);
					emo19.setPreferredSize(new java.awt.Dimension(16,16));
					emo19.setSize(16, 16);
		    		emo19.setBorderPainted(false);
		    		emo19.setIcon(new ImageIcon(getClass().getResource("emo19.gif")));
		    		emo19.setBackground(new java.awt.Color(255,255,255));
		    		emo19.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=19;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo20 = new JButton();
					jPanel1.add(emo20);
					emo20.setPreferredSize(new java.awt.Dimension(16,16));
					emo20.setSize(16, 16);
		    		emo20.setBorderPainted(false);
		    		emo20.setIcon(new ImageIcon(getClass().getResource("emo20.gif")));
		    		emo20.setBackground(new java.awt.Color(255,255,255));
		    		emo20.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=20;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo21 = new JButton();
					jPanel1.add(emo21);
					emo21.setPreferredSize(new java.awt.Dimension(16,16));
					emo21.setSize(16, 16);
		    		emo21.setBorderPainted(false);
		    		emo21.setIcon(new ImageIcon(getClass().getResource("emo21.gif")));
		    		emo21.setBackground(new java.awt.Color(255,255,255));
		    		emo21.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=21;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo22 = new JButton();
					jPanel1.add(emo22);
					emo22.setPreferredSize(new java.awt.Dimension(16,16));
					emo22.setSize(16, 16);
		    		emo22.setBorderPainted(false);
		    		emo22.setIcon(new ImageIcon(getClass().getResource("emo22.gif")));
		    		emo22.setBackground(new java.awt.Color(255,255,255));
		    		emo22.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=22;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo23 = new JButton();
					jPanel1.add(emo23);
					emo23.setPreferredSize(new java.awt.Dimension(40,23));
					emo23.setSize(40, 23);
		    		emo23.setBorderPainted(false);
		    		emo23.setIcon(new ImageIcon(getClass().getResource("emo23.gif")));
		    		emo23.setBackground(new java.awt.Color(255,255,255));
		    		emo23.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=23;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo24 = new JButton();
					jPanel1.add(emo24);
					emo24.setPreferredSize(new java.awt.Dimension(32,32));
					emo24.setSize(32, 32);
		    		emo24.setBorderPainted(false);
		    		emo24.setIcon(new ImageIcon(getClass().getResource("emo24.gif")));
		    		emo24.setBackground(new java.awt.Color(255,255,255));
		    		emo24.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=24;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo25 = new JButton();
					jPanel1.add(emo25);
					emo25.setPreferredSize(new java.awt.Dimension(21,22));
					emo25.setSize(21, 22);
		    		emo25.setBorderPainted(false);
		    		emo25.setIcon(new ImageIcon(getClass().getResource("emo25.gif")));
		    		emo25.setBackground(new java.awt.Color(255,255,255));
		    		emo25.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=25;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo26 = new JButton();
					jPanel1.add(emo26);
					emo26.setPreferredSize(new java.awt.Dimension(30,15));
					emo26.setSize(30, 15);
		    		emo26.setBorderPainted(false);
		    		emo26.setIcon(new ImageIcon(getClass().getResource("emo26.gif")));
		    		emo26.setBackground(new java.awt.Color(255,255,255));
		    		emo26.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=26;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo27 = new JButton();
					jPanel1.add(emo27);
					emo27.setPreferredSize(new java.awt.Dimension(16,16));
					emo27.setSize(16, 16);
		    		emo27.setBorderPainted(false);
		    		emo27.setIcon(new ImageIcon(getClass().getResource("emo27.gif")));
		    		emo27.setBackground(new java.awt.Color(255,255,255));
		    		emo27.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=27;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo28 = new JButton();
					jPanel1.add(emo28);
					emo28.setPreferredSize(new java.awt.Dimension(16,16));
					emo28.setSize(16, 16);
		    		emo28.setBorderPainted(false);
		    		emo28.setIcon(new ImageIcon(getClass().getResource("emo28.gif")));
		    		emo28.setBackground(new java.awt.Color(255,255,255));
		    		emo28.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=28;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo29 = new JButton();
					jPanel1.add(emo29);
					emo29.setPreferredSize(new java.awt.Dimension(18,15));
					emo29.setSize(18, 15);
		    		emo29.setBorderPainted(false);
		    		emo29.setIcon(new ImageIcon(getClass().getResource("emo29.gif")));
		    		emo29.setBackground(new java.awt.Color(255,255,255));
		    		emo29.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=29;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo30 = new JButton();
					jPanel1.add(emo30);
					emo30.setPreferredSize(new java.awt.Dimension(25,15));
					emo30.setSize(25, 15);
		    		emo30.setBorderPainted(false);
		    		emo30.setIcon(new ImageIcon(getClass().getResource("emo30.gif")));
		    		emo30.setBackground(new java.awt.Color(255,255,255));
		    		emo30.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=30;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo31 = new JButton();
					jPanel1.add(emo31);
					emo31.setPreferredSize(new java.awt.Dimension(15,18));
					emo31.setSize(15, 18);
		    		emo31.setBorderPainted(false);
		    		emo31.setIcon(new ImageIcon(getClass().getResource("emo31.gif")));
		    		emo31.setBackground(new java.awt.Color(255,255,255));
		    		emo31.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=31;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo32 = new JButton();
					jPanel1.add(emo32);
					emo32.setPreferredSize(new java.awt.Dimension(15,18));
					emo32.setSize(15,18);
		    		emo32.setBorderPainted(false);
		    		emo32.setIcon(new ImageIcon(getClass().getResource("emo32.gif")));
		    		emo32.setBackground(new java.awt.Color(255,255,255));
		    		emo32.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=32;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo33 = new JButton();
					jPanel1.add(emo33);
					emo33.setPreferredSize(new java.awt.Dimension(15,15));
					emo33.setSize(15, 15);
		    		emo33.setBorderPainted(false);
		    		emo33.setIcon(new ImageIcon(getClass().getResource("emo33.gif")));
		    		emo33.setBackground(new java.awt.Color(255,255,255));
		    		emo33.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=33;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo34 = new JButton();
					jPanel1.add(emo34);
					emo34.setPreferredSize(new java.awt.Dimension(20,15));
					emo34.setSize(20, 15);
		    		emo34.setBorderPainted(false);
		    		emo34.setIcon(new ImageIcon(getClass().getResource("emo34.gif")));
		    		emo34.setBackground(new java.awt.Color(255,255,255));
		    		emo34.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=34;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo35 = new JButton();
					jPanel1.add(emo35);
					emo35.setPreferredSize(new java.awt.Dimension(18,18));
					emo35.setSize(18, 18);
		    		emo35.setBorderPainted(false);
		    		emo35.setIcon(new ImageIcon(getClass().getResource("emo35.gif")));
		    		emo35.setBackground(new java.awt.Color(255,255,255));
		    		emo35.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=35;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo36 = new JButton();
					jPanel1.add(emo36);
					emo36.setPreferredSize(new java.awt.Dimension(15,15));
					emo36.setSize(15, 15);
		    		emo36.setBorderPainted(false);
		    		emo36.setIcon(new ImageIcon(getClass().getResource("emo36.gif")));
		    		emo36.setBackground(new java.awt.Color(255,255,255));
		    		emo36.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=36;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo37 = new JButton();
					jPanel1.add(emo37);
					emo37.setPreferredSize(new java.awt.Dimension(15,15));
					emo37.setSize(15, 15);
		    		emo37.setBorderPainted(false);
		    		emo37.setIcon(new ImageIcon(getClass().getResource("emo37.gif")));
		    		emo37.setBackground(new java.awt.Color(255,255,255));
		    		emo37.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=37;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo38 = new JButton();
					jPanel1.add(emo38);
					emo38.setPreferredSize(new java.awt.Dimension(15,15));
					emo38.setSize(15, 15);
		    		emo38.setBorderPainted(false);
		    		emo38.setIcon(new ImageIcon(getClass().getResource("emo38.gif")));
		    		emo38.setBackground(new java.awt.Color(255,255,255));
		    		emo38.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=38;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo39 = new JButton();
					jPanel1.add(emo39);
					emo39.setPreferredSize(new java.awt.Dimension(18,18));
					emo39.setSize(18,18);
		    		emo39.setBorderPainted(false);
		    		emo39.setIcon(new ImageIcon(getClass().getResource("emo39.gif")));
		    		emo39.setBackground(new java.awt.Color(255,255,255));
		    		emo39.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=39;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo40 = new JButton();
					jPanel1.add(emo40);
					emo40.setPreferredSize(new java.awt.Dimension(16,16));
					emo40.setSize(16, 16);
		    		emo40.setBorderPainted(false);
		    		emo40.setIcon(new ImageIcon(getClass().getResource("emo40.gif")));
		    		emo40.setBackground(new java.awt.Color(255,255,255));
		    		emo40.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=40;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo41 = new JButton();
					jPanel1.add(emo41);
					emo41.setPreferredSize(new java.awt.Dimension(16,16));
					emo41.setSize(16, 16);
					emo41.setBorderPainted(false);
		    		emo41.setIcon(new ImageIcon(getClass().getResource("emo41.gif")));
		    		emo41.setBackground(new java.awt.Color(255,255,255));
		    		emo41.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=41;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo42 = new JButton();
					jPanel1.add(emo42);
					emo42.setPreferredSize(new java.awt.Dimension(18,16));
					emo42.setSize(18, 16);
					emo42.setBorderPainted(false);
					emo42.setIcon(new ImageIcon(getClass().getResource("emo42.gif")));
					emo42.setBackground(new java.awt.Color(255,255,255));
					emo42.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=42;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo43 = new JButton();
					jPanel1.add(emo43);
					emo43.setPreferredSize(new java.awt.Dimension(18,16));
					emo43.setSize(18, 16);
					emo43.setBorderPainted(false);
					emo43.setIcon(new ImageIcon(getClass().getResource("emo43.gif")));
					emo43.setBackground(new java.awt.Color(255,255,255));
					emo43.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=43;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo44 = new JButton();
					jPanel1.add(emo44);
					emo44.setPreferredSize(new java.awt.Dimension(24,16));
					emo44.setSize(24, 16);
					emo44.setBorderPainted(false);
					emo44.setIcon(new ImageIcon(getClass().getResource("emo44.gif")));
					emo44.setBackground(new java.awt.Color(255,255,255));
					emo44.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=44;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo45 = new JButton();
					jPanel1.add(emo45);
					emo45.setPreferredSize(new java.awt.Dimension(24,16));
					emo45.setSize(24, 16);
					emo45.setBorderPainted(false);
		    		emo45.setIcon(new ImageIcon(getClass().getResource("emo45.gif")));
		    		emo45.setBackground(new java.awt.Color(255,255,255));
		    		emo45.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=45;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo46 = new JButton();
					jPanel1.add(emo46);
					emo46.setPreferredSize(new java.awt.Dimension(16,16));
					emo46.setSize(16, 16);
					emo46.setBorderPainted(false);
		    		emo46.setIcon(new ImageIcon(getClass().getResource("emo46.gif")));
		    		emo46.setBackground(new java.awt.Color(255,255,255));
		    		emo46.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=46;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo47 = new JButton();
					jPanel1.add(emo47);
					emo47.setPreferredSize(new java.awt.Dimension(26,19));
					emo47.setSize(26, 19);
					emo47.setBorderPainted(false);
					emo47.setIcon(new ImageIcon(getClass().getResource("emo47.gif")));
		    		emo47.setBackground(new java.awt.Color(255,255,255));
		    		emo47.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=47;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo48 = new JButton();
					jPanel1.add(emo48);
					emo48.setPreferredSize(new java.awt.Dimension(14,20));
					emo48.setSize(14, 20);
					emo48.setBorderPainted(false);
					emo48.setIcon(new ImageIcon(getClass().getResource("emo48.gif")));
		    		emo48.setBackground(new java.awt.Color(255,255,255));
		    		emo48.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=48;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo49 = new JButton();
					jPanel1.add(emo49);
					emo49.setPreferredSize(new java.awt.Dimension(19,19));
					emo49.setSize(19, 19);
					emo49.setBorderPainted(false);
					emo49.setIcon(new ImageIcon(getClass().getResource("emo49.gif")));
					emo49.setBackground(new java.awt.Color(255,255,255));
					emo49.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=49;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo50 = new JButton();
					jPanel1.add(emo50);
					emo50.setPreferredSize(new java.awt.Dimension(16,16));
					emo50.setSize(16, 16);
					emo50.setBorderPainted(false);
					emo50.setIcon(new ImageIcon(getClass().getResource("emo50.gif")));
		    		emo50.setBackground(new java.awt.Color(255,255,255));
		    		emo50.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=50;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo51 = new JButton();
					jPanel1.add(emo51);
					emo51.setPreferredSize(new java.awt.Dimension(20, 15));
					emo51.setSize(20, 15);
					emo51.setBorderPainted(false);
					emo51.setIcon(new ImageIcon(getClass().getResource("emo51.gif")));
		    		emo51.setBackground(new java.awt.Color(255,255,255));	
		    		emo51.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=51;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo52 = new JButton();
					jPanel1.add(emo52);
					emo52.setPreferredSize(new java.awt.Dimension(39, 15));
					emo52.setSize(39, 15);
					emo52.setBorderPainted(false);
					emo52.setIcon(new ImageIcon(getClass().getResource("emo52.gif")));
					emo52.setBackground(new java.awt.Color(255,255,255));	
					emo52.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=52;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo53 = new JButton();
					jPanel1.add(emo53);
					emo53.setPreferredSize(new java.awt.Dimension(15, 19));
					emo53.setSize(15,19);
					emo53.setBorderPainted(false);
					emo53.setIcon(new ImageIcon(getClass().getResource("emo53.gif")));
					emo53.setBackground(new java.awt.Color(255,255,255));	
					emo53.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=53;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo54 = new JButton();
					jPanel1.add(emo54);
					emo54.setPreferredSize(new java.awt.Dimension(16, 16));
					emo54.setSize(16, 16);
					emo54.setBorderPainted(false);
					emo54.setIcon(new ImageIcon(getClass().getResource("emo54.gif")));
					emo54.setBackground(new java.awt.Color(255,255,255));	
					emo54.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=54;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				
				{
					emo55 = new JButton();
					jPanel1.add(emo55);
					emo55.setPreferredSize(new java.awt.Dimension(41,46));
					emo55.setSize(41, 46);
					emo55.setBorderPainted(false);
					emo55.setIcon(new ImageIcon(getClass().getResource("emo55.gif")));
					emo55.setBackground(new java.awt.Color(255,255,255));
					emo55.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=55;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo56 = new JButton();
					jPanel1.add(emo56);
					emo56.setPreferredSize(new java.awt.Dimension(63,55));
					emo56.setSize(63, 55);
					emo56.setBorderPainted(false);
					emo56.setIcon(new ImageIcon(getClass().getResource("emo56.gif")));
					emo56.setBackground(new java.awt.Color(255,255,255));
					emo56.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=56;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo57 = new JButton();
					jPanel1.add(emo57);
					emo57.setPreferredSize(new java.awt.Dimension(29,25));
					emo57.setSize(29, 25);
					emo57.setBorderPainted(false);
					emo57.setIcon(new ImageIcon(getClass().getResource("emo57.gif")));
					emo57.setBackground(new java.awt.Color(255,255,255));
					emo57.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=57;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo58 = new JButton();
					jPanel1.add(emo58);
					emo58.setPreferredSize(new java.awt.Dimension(20,20));
					emo58.setSize(20, 20);
					emo58.setBorderPainted(false);
					emo58.setIcon(new ImageIcon(getClass().getResource("emo58.gif")));
					emo58.setBackground(new java.awt.Color(255,255,255));
					emo58.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=58;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
				{
					emo59 = new JButton();
					jPanel1.add(emo59);
					emo59.setName("emo59");
					emo59.setPreferredSize(new java.awt.Dimension(16,8));
					emo59.setSize(16, 8);
					emo59.setBorderPainted(false);
					emo59.setIcon(new ImageIcon(getClass().getResource("emo59.gif")));
					emo59.setBackground(new java.awt.Color(255,255,255));
					emo59.addActionListener(new ActionListener() {
		    			public void actionPerformed(ActionEvent evt) {
		    				emoticon=59;
		    				emoActionPerformed(evt);
		    			}
		    		});
				}
			}
			pack();
			this.setSize(773, 131);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}
	

		private void emoActionPerformed(ActionEvent evt) {
					main.insertar_emo(emoticon);
					
				}



}
